<template>
  <div class="cmp2">这是组件2</div>
</template>
<script lang='ts' setup>
defineOptions({
  name: "Cmp2"
})
</script>
<style scoped lang='less'>
.cmp2{
  height: 100px;
  width: 100%;
  background: red;
}
</style>